% Results:
%  Player won 0 hands (0 blackjacks).
%  Player lost 0 hands.
%  Pushed on 0 hands.

% Initial bank roll: $200
% Initial wager: $5

% Results:
%  Player won 43300581 hands (4743198 blackjacks).
%  Player lost 48162866 hands.
%  Pushed on 8536553 hands.

%  Ratio wins  : 0.433006
%  Ratio losses: 0.481629
%  Ratio pushes: 0.0853655
%  Ratio blackjacks: 0.047432

%  Average run before going broke: 83.9664 hands.
%  Minimum run before going broke: 5 hands.
%  Maximum run before going broke: 129 hands.

%  Average peak hand     : 64.0549 hands.
%  Average bank roll peak: $379.28

% 1 peakHandHistogram
% 2 peakBankHistogram
% 3 sumBankRollPerHand
% 4 handOrdinalCounts
% 5 countLosingStreaks
% 6 countBankRollUp
% 7 countBankRollDown
% 8 countLosingStreaksOfGivenLength

x = [
 57369 11568715 2.37808e+08 1190952 20497312 563351 627601 151652;
 17706 3679245 2.38586e+08 1190953 10798755 594148 330820 11964;
 17754 3737389 2.37191e+08 1190953 5681147 719779 331148 3340;
 17523 3735038 2.3704e+08 1190953 2994951 787694 329094 2357;
 17088 3690918 2.36099e+08 1190953 1576253 832402 282731 2158;
 16187 3547600 2.35458e+08 1190953 828077 856386 270461 1934;
 15727 3493375 2.35046e+08 1165631 437090 880329 241590 0;
 15257 3431484 2.34689e+08 1154579 230953 887841 229225 571;
 14934 3401915 2.34309e+08 1143138 121428 891470 221210 521;
 14275 3293152 2.33902e+08 1131560 63840 890446 219858 647;
 13740 3213330 2.33445e+08 1119983 33596 884745 220046 690;
 13215 3127690 2.3302e+08 1107701 17658 877108 218180 776;
 13089 3137545 2.32573e+08 1095925 9122 868781 215633 937;
 12687 3076824 2.32096e+08 1084003 4928 859571 212849 1019;
 11958 2936753 2.31673e+08 1072054 2658 850595 210000 1096;
 11742 2916374 2.3127e+08 1059972 1317 841020 208159 1167;
 11451 2878771 2.30844e+08 1047988 695 831162 207624 1177;
 10969 2789525 2.3043e+08 1036129 387 820572 207843 1342;
 10645 2738880 2.29967e+08 1024432 190 808837 209444 1339;
 10250 2667741 2.29558e+08 1012502 99 797370 210269 1386;
 10046 2642218 2.29136e+08 1000789 59 785763 210830 1495;
 9548 2542642 2.28694e+08 989191 22 774528 210756 1462;
 9470 2548413 2.28294e+08 977688 20 764729 208916 1502;
 9035 2457172 2.27897e+08 966373 11 755839 206073 1523;
 8786 2410590 2.27473e+08 955323 4 748665 201712 1615;
 8595 2387631 2.27071e+08 944373 3 743091 195675 1688;
 8206 2306344 2.26657e+08 933556 0 738235 188969 1576;
 8028 2276194 2.26228e+08 922886 3 734448 181735 1640;
 7779 2227498 2.25818e+08 912577 1 731657 173776 1702;
 7619 2204775 2.25373e+08 902191 0 729661 165296 1706;
 7648 2233472 2.24984e+08 891924 0 728463 156384 1704;
 7180 2118106 2.24563e+08 881838 1 726446 148051 1707;
 7127 2124474 2.24188e+08 871873 1 725168 139872 1782;
 6861 2061293 2.2379e+08 862301 0 723294 132436 1724;
 6775 2051366 2.23399e+08 852773 0 721237 125377 1760;
 6779 2070359 2.22987e+08 843524 0 718205 119490 1815;
 6826 2101371 2.22636e+08 834378 0 715764 113189 1872;
 6603 2046127 2.22288e+08 825155 0 712431 107698 1864;
 6671 2078555 2.21891e+08 816345 0 708644 102948 1982;
 6507 2040266 2.21495e+08 807411 0 704872 98328 1970;
 6499 2051433 2.21133e+08 798823 0 700793 94105 1886;
 6486 2056133 2.20704e+08 790712 0 696094 91025 2112;
 6704 2136841 2.20368e+08 782490 0 691543 87568 2166;
 6829 2186479 2.20005e+08 774577 0 686422 85126 2262;
 6647 2137294 2.19673e+08 766914 0 681385 82694 2302;
 6757 2181606 2.19351e+08 759527 0 676504 80543 2492;
 6800 2214105 2.1903e+08 752312 0 670700 79239 2415;
 6773 2214834 2.18715e+08 745431 0 665310 77999 2598;
 6744 2218106 2.18382e+08 738802 0 659562 77284 2532;
 6735 2231409 2.18043e+08 732354 0 653967 76582 2728;
 6653 2224856 2.17723e+08 725793 0 648213 75835 2834;
 6659 2240399 2.17397e+08 719472 0 642537 75318 2725;
 6616 2241692 2.17064e+08 713327 0 636886 74930 2842;
 6595 2253423 2.16771e+08 707276 0 631408 74432 2870;
 6477 2229372 2.16457e+08 701403 0 625850 74145 2831;
 6287 2187295 2.16162e+08 695512 0 620400 73803 2897;
 6382 2230663 2.15799e+08 689788 0 614711 73759 2850;
 6224 2194918 2.15492e+08 684267 0 609322 73662 2846;
 6190 2200275 2.15174e+08 678610 0 603939 73473 2896;
 6265 2249930 2.14905e+08 672934 0 598783 73093 2834;
 6091 2206267 2.14587e+08 667471 0 593531 72860 2836;
 6049 2211609 2.14273e+08 662046 0 588260 72771 2846;
 5856 2150449 2.13955e+08 656704 0 583091 72687 2802;
 5876 2187648 2.1361e+08 651446 0 577719 72820 2826;
 5884 2198225 2.13322e+08 646158 0 572653 72602 2918;
 5691 2144436 2.12967e+08 641033 0 567515 72679 2798;
 5673 2153293 2.12662e+08 635909 0 562374 72713 2846;
 5539 2119611 2.1237e+08 630829 0 557455 72619 2734;
 5587 2155220 2.12058e+08 625731 0 552714 72332 2800;
 5474 2125419 2.11745e+08 620748 0 547710 72287 2778;
 5295 2068876 2.11442e+08 615945 0 542888 72312 2791;
 5297 2087654 2.11142e+08 611176 0 538435 72081 2726;
 5235 2067477 2.10834e+08 606408 0 533913 71774 2752;
 5207 2069944 2.10548e+08 601776 0 529634 71525 2715;
 5117 2053432 2.10272e+08 597160 0 525176 71305 2610;
 5061 2047673 2.09957e+08 592639 0 521012 70950 2609;
 5092 2071284 2.09694e+08 588060 0 517268 70099 2680;
 4993 2044745 2.09432e+08 583572 0 513362 69474 2626;
 4849 2001644 2.09094e+08 579073 0 509603 68698 2549;
 4995 2072440 2.08846e+08 574709 0 506140 67811 2629;
 4838 2020212 2.08617e+08 570468 0 502796 66918 2570;
 4889 2055965 2.08303e+08 566186 0 499514 65892 2568;
 4731 1997686 2.08013e+08 561987 0 496352 64813 2529;
 4775 2034477 2.07746e+08 557743 0 493218 63743 2518;
 4614 1970589 2.07449e+08 553603 0 490379 62429 2481;
 4646 1999321 2.07164e+08 549588 0 487377 61372 2398;
 4626 2005566 2.069e+08 545568 0 484697 60027 2514;
 4538 1982481 2.06596e+08 541569 0 482070 58701 2408;
 4505 1976808 2.06354e+08 537545 0 479561 57202 2508;
 4326 1912890 2.06084e+08 533762 0 476927 55956 2456;
 4299 1910462 2.0581e+08 529965 0 474565 54590 2503;
 4239 1895668 2.0554e+08 526096 0 472073 53193 2373;
 4256 1910122 2.05266e+08 522293 0 469648 51816 2378;
 4201 1896963 2.05011e+08 518515 0 467487 50241 2412;
 4101 1868665 2.0476e+08 514836 0 465177 48901 2374;
 4145 1898173 2.04517e+08 511097 0 462868 47464 2313;
 4052 1865324 2.04312e+08 507509 0 460676 46121 2318;
 3938 1827556 2.04082e+08 504029 0 458550 44745 2226;
 4064 1899180 2.03825e+08 500378 0 456058 43632 2261;
 4050 1907054 2.03588e+08 496931 0 453945 42382 2297;
 3932 1855286 2.03343e+08 493429 0 451855 40941 2228;
 3919 1858902 2.03111e+08 489935 0 449587 39752 2229;
 3883 1851350 2.02899e+08 486605 0 447272 38725 2245;
 3825 1835387 2.02647e+08 483256 0 445055 37665 2164;
 3735 1811135 2.02365e+08 479933 0 442688 36715 2105;
 3703 1800448 2.02097e+08 476713 0 440236 35939 2224;
 3618 1766524 2.01826e+08 473354 0 438051 34787 2158;
 3588 1768298 2.0158e+08 470092 0 435673 33939 2190;
 3461 1712257 2.0133e+08 466903 0 433430 32998 2183;
 3538 1755626 2.0108e+08 463685 0 431073 32150 2104;
 3509 1751827 2.00827e+08 460492 0 428872 31189 2148;
 3521 1770476 2.00587e+08 457373 0 426658 30294 2118;
 3397 1721466 2.00387e+08 454326 0 424277 29609 2106;
 3390 1720296 2.00156e+08 451257 0 421928 28920 2026;
 3280 1676002 1.99935e+08 448217 0 419744 28078 2068;
 3271 1680263 1.99653e+08 445200 0 417503 27338 1993;
 3312 1713790 1.99468e+08 442182 0 415330 26506 2080;
 3305 1711039 1.9923e+08 439199 0 412951 25914 1979;
 3176 1663309 1.9902e+08 436309 0 410798 25182 2052;
 3160 1655171 1.98806e+08 433488 0 408543 24628 2002;
 3147 1663656 1.98572e+08 430703 0 406322 24107 1993;
 3115 1655322 1.98371e+08 427877 0 404098 23498 1985;
 3137 1677408 1.98159e+08 425090 0 401882 22952 1933;
 3518 1905445 1.97935e+08 422349 0 399574 22489 1981;
 6474 3530011 1.97721e+08 419617 0 397365 22019 1962;
 12361 6775073 1.97562e+08 416897 0 395187 21454 2017;
 23021 12674679 1.97343e+08 414258 0 392925 21074 1929;
 43662 24154243 1.97095e+08 411595 0 390722 20648 1868;
];
plot(x(:,6)./x(:,4)); % ratio of wins w.r.t. number of hands played

